package cn.iocoder.yudao.module.design.convert.diary;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.design.controller.admin.diary.vo.DiaryCreateReqVO;
import cn.iocoder.yudao.module.design.controller.admin.diary.vo.DiaryExcelVO;
import cn.iocoder.yudao.module.design.controller.admin.diary.vo.DiaryRespVO;
import cn.iocoder.yudao.module.design.controller.admin.diary.vo.DiaryUpdateReqVO;
import cn.iocoder.yudao.module.design.dal.dataobject.diary.DiaryDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 日记 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface DiaryConvert {

    DiaryConvert INSTANCE = Mappers.getMapper(DiaryConvert.class);

    DiaryDO convert(DiaryCreateReqVO bean);

    DiaryDO convert(DiaryUpdateReqVO bean);

    DiaryRespVO convert(DiaryDO bean);

    List<DiaryRespVO> convertList(List<DiaryDO> list);

    PageResult<DiaryRespVO> convertPage(PageResult<DiaryDO> page);

    List<DiaryExcelVO> convertList02(List<DiaryDO> list);

}
